package org.biz.util;

/**
 * @author zf
 * @ClassName UserContext
 * @date 2025/3/6 11:16
 */
public class UserContext {
    private static final ThreadLocal<String> idCardThreadLocal = new ThreadLocal<>();

    public static void setIdCard(String idCard) {
        idCardThreadLocal.set(idCard);
    }

    public static String getIdCard() {
        return idCardThreadLocal.get();
    }

    public static void clear() {
        idCardThreadLocal.remove();
    }
}
